# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/1/9 1:33

for i in range(1, 4):
    for j in range(1, 4):
        if j == 2:
            # 跳出内层循环
            break
    else:
        continue
    # 跳出外层循环
    break

# sum = 0
#
# for i in range(1, 101):
#     sum += i
#     if sum >= 20:
#         break
# print(f"i = {i}")
#
# for i in range(1, 4):
#     username = input("请输入用户名：")
#     password = input("请输入密码：")
#     if username == "张无忌" and password == "888":
#         print("登录成功")
#         break
#     else:
#         print(f"你还有{3 - i}次机会")
